package com.coder306.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.coder306.bean.UpmsPermission;
import com.coder306.bean.UpmsRole;
import com.coder306.dao.mapper.UpmsPermissionMapper;
import com.coder306.dao.mapper.UpmsRoleMapper;
import com.coder306.service.UpmsPermissionService;

@Service
public class UpmsPermissionServiceImpl implements UpmsPermissionService {

	
	@Autowired
	private UpmsRoleMapper upmsRoleMapper;
	
	@Autowired
	private UpmsPermissionMapper upmsPermissionMapper;
	
	@Override
	public List<UpmsRole> queryRoleByUserId(Long userId) {
		return upmsRoleMapper.queryByUserId(userId);
	}

	@Override
	public List<UpmsPermission> queryPermissionByUserId(Long userId) {
		return upmsPermissionMapper.queryByUserId(userId);
	}

}
